package com.zhangsl.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhangsl.dao.UserDao;
import com.zhangsl.service.UserService;
import com.zhangsl.vo.UserVO;

@Service("userService")
public class UserServiceImpl implements UserService{
	@Autowired
	private UserDao userDao;
	
	public List<UserVO> findAll() {
		return userDao.findAll();
	}

	public UserVO findUserByName(String name) {
		// TODO Auto-generated method stub
		return userDao.findUserByName(name);
	}

	public int insertUser(UserVO userVO) {
		// TODO Auto-generated method stub
		return userDao.insertUser(userVO);
	}

	public int updateUserLoginTime(UserVO userVO) {
		// TODO Auto-generated method stub
		return userDao.updateUserLoginTime(userVO);
	}

}
